{% extends "appbuilder/base.html" %}
{% import 'appbuilder/general/lib.html' as lib %}

{% block content %}
{{ lib.panel_begin(title) }}
line1
{% block add_form %}
    {{ widgets.get('add')(form_action=form_action)|safe }}
{% endblock %}
line2
{{ lib.panel_end() }}
{% endblock %}


{% block head_css %}
{{super()}}
<link href="/static/css/post.add.css" rel="stylesheet">
{% endblock %}

{% block add_tail_js %}
{{super()}}
<script type="text/javascript" charset="utf-8" src="{{ url_for('static', filename='ueditor/ueditor.config.js') }}"></script>
<script type="text/javascript" charset="utf-8" src="{{ url_for('static', filename='ueditor/ueditor.all.min.js') }}"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="{{ url_for('static', filename='ueditor/lang/zh-cn/zh-cn.js') }}"></script>

<script src="/static/js/post.js"></script>
{% endblock %}
